﻿using Bilibili.Model.Season;
using ReactiveUI;
using System.Collections.ObjectModel;

namespace Avalonia.BiliBili.ViewModels
{
    public sealed class IndexViewModel : ViewModelBase
    {
        private ObservableCollection<FilterInfo> condition = [];
        public ObservableCollection<FilterInfo> Condition
        {
            get => condition;
            private set => this.RaiseAndSetIfChanged(ref condition, value);
        }
        private ObservableCollection<SeasonIndexResultItemModel> list = [];
        public ObservableCollection<SeasonIndexResultItemModel> SeasonList
        {
            get => list;
            private set => this.RaiseAndSetIfChanged(ref list, value);
        }
        public override void Dispose()
        {
            base.Dispose();
            list?.Clear();
            condition?.Clear();
        }
    }
}